<layout name="layout" />

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label3" style="width: 45%">上级分类：</td>
                <td >
                    <select name="parent_id">
                        <option value="0">顶级分类</option>
                        <?php foreach($cateGory as $k => $val):
                        if($val['id'] ==$data['id'] || in_array($val['id'],$children))
                        continue;
                        if($val['id'] == $data['parent_id'])
                        $select ='selected ="selected"';
                        else
                        $select ='';
                        ?>
                            <option <?php echo $select?> value="<?php echo $val['id']?>" >
                                <?php echo str_repeat("-",8*$val['level']) . $val['cate_name']; ?>
                            </option>
                        <?php endforeach; ?>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="label3">分类名称：</td>
                <td>
                    <input type="text" name="cate_name" value="{$data.cate_name}">
                </td>
            </tr>
            <tr>
                <td class="label3">推荐到楼层：</td>
                <td>
                    <input type="radio" name="is_floor" value="是" <if condition="$data.is_floor eq 是"> checked </if>/> 是
                    <input type="radio" name="is_floor" value="否" <if condition="$data.is_floor eq 否"> checked </if>/> 否
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>


<script>
</script>